Updating custom details via rest api?

Hi,

I tried to update custome fields to an incident (which i created via events API).

Then I call:
curl -X PUT --header ‘Content-Type: application/json’ --header ‘Accept: application/vnd.pagerduty+json;version=2’ --header ‘From: x@x.com’ --header ‘Authorization: Token token=xxxxxxxxx’ -d ‘{
“incident”: {
“type”: “incident_reference”,
“status”: “acknowledged”,
“custom_details”: {
“actionPlan”: “actionplan v2”
}
}
}’ ‘https://api.pagerduty.com/incidents/xxxxxx’


also versions with a “payload” element
 in both cases

  • while the API result is 200,
  • the changed values are not visible in the incident UI 
 and
  • incident/get does not list them.

Any ideas how I can update custom details with Event API?

Kind regards,

Daniel

1 Like